<%@page import="bean.PortfolioVo"%>
<%@page import="java.util.ArrayList"%>
<%@page import="bean.portDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>룰루랄라</title>
<link rel='stylesheet' href='port.css'>
<script src='port.js'></script>
</head>
<body>
<%request.setCharacterEncoding("utf-8");%>
<jsp:useBean id="vo" class="bean.PortfolioVo" scope="page"/>
<jsp:setProperty property="*" name="vo"/>

<%
	request.setCharacterEncoding("utf-8");

	portDTO dto = new portDTO();
	dto.setVo(vo);
	ArrayList<PortfolioVo> al = dto.select();	
	
	String inc=request.getParameter("inc");
	if(inc==null) inc="dummy.jsp";
%>




	<!-- 사진 이미지 출력 -->
<%for(int a=0; a<al.size(); a++){
	PortfolioVo pv = al.get(a);%>
	<div id="port_list<%=a%>">
	<%if(pv.getPhoto() == null){%>
	
	<a href='#' onclick='goView(<%=dto.getNowPage()%>,<%=pv.getRno()%>)'>
	<img src="noimage.png" width=200px height=180px></a>
	<h2>[<%=pv.getCate()%>]<%=pv.getSubject()%></h2>
	<%}else{%>
	
	<a href='#' onclick='goView(<%=dto.getNowPage()%>,<%=pv.getRno()%>)'>	
	<img src='../memberPhoto/<%=pv.getPhoto() %>' width=200px height=180px></a>
	<h2>[<%=pv.getCate()%>]<%=pv.getSubject()%></h2>
	<%}%><br/>
	<%=vo.getSubject()%>
	</div>

<%}%>

</body>
</html>